export class ApiError extends Error {
    code?: number

    constructor(msg?: string, code?: number) {
        super(msg);
        this.name = 'ApiError'
        this.code = code
    }
}
